package com.bjc.principle.command;

/**
 * @program: DesignPattern
 * @description: 创建一个请求类
 * @author: bjc
 * @create: 2021-01-04 17:55
 */
public class Stock {

    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("Stock [ Name: "+name+"Quantity:" + quantity +" ] bought");
    }
    public void sell(){
        System.out.println("Stock [ Name: "+name+"Quantity:" + quantity +" ] sold");
    }
}
